Skip to content

List recent searches under the All Messages search field - #3111

Merged
ramonsmits merged 2 commits into
masterfrom
ramon/audit-search-history
Sep 10, 2026
Merged

List recent searches under the All Messages search field#3111
ramonsmits merged 2 commits into
masterfrom
ramon/audit-search-history

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

Stacked on:

Per-browser history of audit searches with one-click rerun.

  • Any query that used search text or an endpoint is remembered in this browser (most recent first, capped at 10, no duplicates), together with the time-range expressions it ran with. The range is part of a search's identity, and rerunning restores it, so an entry is a true "run this exact query again"
  • Review feedback applied: instead of a separate "History" dropdown, the recent searches float under the search field while it has focus, the way a browser address bar does. Typing narrows the list to entries whose search text or endpoint match; Escape dismisses it; a click in the field brings it back. An empty history shows nothing

Comment thread src/Frontend/src/components/audit/SearchHistory.vue
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch 2 times, most recently from 6610205 to 643c441 Compare September 9, 2026 06:38
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch 4 times, most recently from 8eddaa3 to 8f35c81 Compare September 9, 2026 07:43
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch 3 times, most recently from 7adf204 to d76d13f Compare September 9, 2026 10:19
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch from 93d232d to c1ccb9b Compare September 9, 2026 12:20
@mauroservienti
mauroservienti force-pushed the ramon/audit-search-history branch from c1ccb9b to 1f0f533 Compare September 9, 2026 13:01
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch from 1f0f533 to 04ccf79 Compare September 10, 2026 08:58
Base automatically changed from ramon/audit-query-bar to master September 10, 2026 09:55
Any query that used search text or an endpoint is remembered in this
browser (most recent first, capped, no duplicates) together with the
time-range expressions it ran with: the range is part of a search's
identity, entries show it worded like the picker ("now-1h", "start to
end"), and rerunning restores it so an entry is a true "run this exact
query again".

The history floats under the search field while it has focus, the way
a browser's address bar does; typing narrows the list to entries whose
search text or endpoint match, Escape dismisses it and a click in the
field brings it back. It is not a Popover API popover: light dismiss
would close it on a click in the very field it belongs to.
…ch is submitted

The panel stayed open while results were on screen, and its entries
were ordinary buttons after the field, so Tab walked into the history
instead of leaving it.

It now behaves like an address bar's suggestions: the entries are out
of the tab order, Arrow Up/Down move a highlight, Enter reruns the
highlighted entry, Escape and Tab close, and so does focus leaving the
field and the panel. Submitting a search closes it as well, whether by
Enter or by the debounced text reaching the store; typing again brings
it back, filtered by the new text. The field announces itself as a
combobox controlling the list, with the highlighted entry as its
active descendant.
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch from 04ccf79 to 96f3680 Compare September 10, 2026 09:56
@ramonsmits
ramonsmits merged commit e0e5e72 into master Sep 10, 2026
5 checks passed
@ramonsmits
ramonsmits deleted the ramon/audit-search-history branch September 10, 2026 10:20
@ramonsmits ramonsmits changed the title Recent searches under the All Messages search field List recent searches under the All Messages search field Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants